package uw10.app.display;

import uw10.app.data.Event;
import android.graphics.Bitmap;

public class EventIconFactory
{
	private Bitmap[] icons;
	
	public EventIconFactory(Bitmap[] icons)
	{
		this.icons = icons;
	}
	
	public Bitmap getIcon(Event event)
	{
		if (event.icon > 0 && event.icon < icons.length)
			return icons[event.icon];
		else
			return icons[0];
	}
}
